package wqh.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import wqh.dao.AlarmInCommingDao;
import wqh.domain.AlarmInComming;
import wqh.service.AlarmInCommingService;

import java.util.List;

/**
 * Created by devts on 2016/9/28.
 */
@Service("alarmInCommingService")
public class AlarmInCommingServiceImpl implements AlarmInCommingService {

    @Autowired
    private AlarmInCommingDao alarmInCommingDao;

    public int insertRecord(AlarmInComming alarmInComming) {
        return this.alarmInCommingDao.insertRecord(alarmInComming);
    }

    public int deleteRecord(Integer id) {
        return this.alarmInCommingDao.deleteRecord(id);
    }

    public List<AlarmInComming> findAllRecord() {
        return this.alarmInCommingDao.findAllRecord();
    }

    public AlarmInComming findAllById(Integer id) {
        return this.alarmInCommingDao.findAllById(id);
    }

    public List<AlarmInComming> findAllStatus(String status) {
        return this.alarmInCommingDao.findAllStatus(status);
    }

    public List<AlarmInComming> findAllStatusAndTime(String status, Integer unix_time) {
        return this.alarmInCommingDao.findAllStatusAndTime(status, unix_time);
    }

    public int countAllStatus(String status) {
        return this.alarmInCommingDao.countAllStatus(status);
    }

    public int countAll() {
        return this.alarmInCommingDao.countAll();
    }

    public int deleteAll() {
        return this.alarmInCommingDao.deleteAll();
    }
}
